@extends('edu::layouts.center')
@section('content')
    @include('edu::center.favorite.nav')
    <div class="bg-white border shadow-sm p-4 mt-3">
        @foreach($models as $model)

            <div class="d-flex pt-3 pb-3 border-bottom align-items-center mb-2">
                <a href="{{route('edu.center.topic.index',$user)}}" class="">
                    <span class="mr-3">
                        <img src="{{$user->icon}}" class="avatar45 rounded">
                    </span>
                </a>
                <div class="d-flex flex-column justify-content-between">
                    <a href="{{route('edu.front.topic.show',$model)}}" class="text-secondary h5">
                        {{$model->title}}
                    </a>
                    <div class="small text-black-50">
                        <a href="{{route('edu.center.topic.index',$user)}}" >{{$user->name}}</a>
                          更新于 {{$model->created_at->diffForHumans()}} 年前
                        <span>评论 {{$model->comment_count}}</span>

                    </div>

                </div>
            </div>

        @endforeach
    </div>

@endsection
